<template>
  <div id="home">
    <div class="entrance">
      <div class="box mobile" @click="linkTo('/mobile/v1/introduction')">移动端组件文档</div>
      <div class="box web" @click="linkTo('/web/v1/introduction')">Web组件文档</div>
      <!-- <div class="box tv" @click="linkTo()">大屏组件文档</div> -->
      <div class="box doc" @click="linkTo('/framework/introduction')">文档框架说明</div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'Home',
  methods: {
    linkTo(path) {
      this.$router.push(path).catch(err => {
        console.log(err)
      })
    }
  }
}
</script>

<style scoped lang="scss">
.entrance {
  .box {
    margin: 30px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 150px;
    box-shadow: 0 0 5px rgba(0,0,0,.5);
    font-size: 2em;
    color: #aaa;
    &:hover {
      cursor: pointer;
      transform: scale(1.1);
      color: #000;
    }
  }
}
</style>
